<?php
    require_once(dirname(__FILE__) . '/../includes/common.inc.php');

    $language = Request::GetParam('language');
    $categories = ArticleCategoryTable::GetCategories($language);
    $data = array();
    foreach ($categories as $category)
    {
        $data[$category->GetCategoryId()] = $category->GetName();
    }

    echo( json_encode($data) );
?>
